import request from '@/utils/requestUtil'

export function fetchContent() {
	return request({
		method: 'GET',
		url: '/product/home/content'
	})
}

// 猜你喜欢
export function fetchRecommendProductList(params) {
	return request({
		method: 'GET',
		url: '/product/home/likeList',
		params:params
	})
}

export function fetchProductCateList(parentId) {
	return request({
		method: 'GET',
		url: '/product/categoryList/list/'+ parentId,
	})
}

export function fetchNewProductList(params) {
	return request({
		method: 'GET',
		url: '/product/home/newProductList',
		params:params
	})
}

export function fetchHotProductList(params) {
	return request({
		method: 'GET',
		url: '/product/home/hotProductList',
		params:params
	})
}
